package cn.itcast.mapper;

import cn.itcast.pojo.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {
    /*@Select("select * from dept")
    public List<Dept> findAll();

    @Delete("delete from dept where id = #{id}")
    int deleteById(Integer id);

    @Insert("insert into dept values(null,#{name},#{createTime},#{updateTime})")
    int add(Dept dept);

    @Select("select * from dept where id = #{id}")
    Dept findById(Integer id);

    @Update("update dept set name = #{name},update_time = #{updateTime} where id = #{id}")
    int update(Dept dept);*/
}
